﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 泛集合
{
    class Student
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }

        public Student(int iD, string name, int age)
        {
            ID = iD;
            Name = name;
            Age = age;
        }

        public override string ToString()
        {
            return $"学号：{ID}，姓名：{Name}，年龄：{Age}。";
        }
    }
}
